package com.fiume.consumer.client;

import com.fiume.consumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * Description:
 * </p>
 *
 * @author fiume
 * @version v1.0.0
 * @create 2021-01-19 16:51
 * @see com.fiume.consumer.client
 */
@FeignClient(value = "user-service", fallback = UserClientFallback.class)
public interface UserClient {

    @RequestMapping("/user/{userid}")
    User findUserByid(@PathVariable("userid") Long userid);
}
